package com.study.sbsummary.config.constant;

public enum BTypeEnum {
    B_TYPE_PICTURE_TEXT(1, "图文模块"),
    B_TYPE_VIDEO(2, "视频模块"),
    B_TYPE_CPP_HANDLE_STREAM(3, "cpp处理流"),
    B_TYPE_REVIEW(4, "审核"),
    B_TYPE_CONTENT(5, "内容中台")
    ;

    private final Integer code;
    private final String describe;

    BTypeEnum(Integer code, String message) {
        this.code = code;
        this.describe = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getDescribe() {
        return describe;
    }

    public static BTypeEnum getValue(int code) {
        for (BTypeEnum type : values()) {
            if (type.getCode() == code) {
                return type;
            }
        }
        return null;
    }

}
